#include "zoomwidget.h"

#include <QAbstractSpinBox>
#include <Qt>

ZoomWidget::ZoomWidget(QWidget *parent, int value):QSpinBox(parent)
{
    setButtonSymbols(QAbstractSpinBox::NoButtons);
    setRange(0, 1000);
    setSuffix(" %");
    setValue(value);
    setToolTip(tr("Zoom Level"));
    setStatusTip(toolTip());
    setAlignment(Qt::AlignCenter);
}
